package com.rc.evcharger.mapper.rc;

import com.rc.evcharger.common.base.BaseMapper;
import com.rc.evcharger.model.rc.RcMemberGainGradeRecord;
import com.rc.evcharger.model.rc.RcMemberGainGradeRecordExample;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface RcMemberGainGradeRecordMapper extends BaseMapper<Long, RcMemberGainGradeRecord, RcMemberGainGradeRecordExample> {

    RcMemberGainGradeRecord selectByMemberIdAndLevelSub(@Param("memberId") Long memberId, @Param("memberGainIdRecord") Long memberGainIdRecord, @Param("totalAmount") BigDecimal totalAmount);

    List<RcMemberGainGradeRecord> selectGainRecordByComsumerAllAmount(@Param("memberId") Long memberId,
                                                                      @Param("levelSub") String levelSub,
                                                                      @Param("consumeUseAmount") BigDecimal consumeUseAmount,
                                                                      @Param("beforeConsumeUseAmount") BigDecimal beforeConsumeUseAmount);
}
